﻿using System;
using System.Configuration;

namespace CreativeMinds.DNSAPI.MSDNS.Configuration {

	public class MSDNSConfigurationSection : ConfigurationSection {

		private static class Keys {
			public const String Servername = "Servername";
			public const String Username = "Username";
			public const String Password = "Password";
		}

		[ConfigurationProperty(Keys.Servername, IsRequired = true)]
		public String Servername {
			get { return (String)this[Keys.Servername]; }
			set { this[Keys.Servername] = value; }
		}

		[ConfigurationProperty(Keys.Username, IsRequired = false)]
		public String Username {
			get { return (String)this[Keys.Username]; }
			set { this[Keys.Username] = value; }
		}

		[ConfigurationProperty(Keys.Password, IsRequired = false)]
		public String Password {
			get { return (String)this[Keys.Password]; }
			set { this[Keys.Password] = value; }
		}
	}
}